<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.bupt.liutong.admin.core.base.CodeTableManager" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.Iterator" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<%
Map<String,String> cityNameMap = CodeTableManager.getInstance().get("cityName");
out.print(cityNameMap.get(request.getAttribute("cityId").toString()));
%>
<br />
<a href="#" class="thiscity" onclick="openHtml('.thiscity','#evercity','480','选择所在城市');return false;">[切换城市]</a>
<div class="disnone">
	<div id="evercity">
		<%
			Iterator<String> iter = cityNameMap.keySet().iterator();
			while(iter.hasNext()){
				String cityId = iter.next();
				String cityName = cityNameMap.get(cityId);
		%>
			<a href="<%=request.getContextPath()%>/front/city.do?method=selCity&cityId=<%=cityId%>"><%=cityName%></a>
		<%
			}
		%>
		<!-- <a href="team.php?cityid=52" class="on">北京</a> -->
	</div>
</div>
